#! /usr/bin/env python
from waf_dynamo import platform_supports_feature

def configure(conf):
    pass

def build(bld):

    if platform_supports_feature(bld.env.PLATFORM, 'record', None):
        bld.stlib(features = 'c cxx',
                includes = '.',
                source = 'record.cpp record_common.cpp',
                target = 'record')

    bld.stlib(features = 'c cxx',
            includes = '.',
            source = 'record_null.cpp record_common.cpp',
            target = 'record_null')

    bld.install_files('${PREFIX}/include/record', 'record.h')
